package classes;


/**
 * FinderPattern.java
 * 
 * @author Nicole Nelson
 */

/*
 * Finder Pattern Class
 */
public class FinderPattern 
{
	private Point [] points;
	private boolean isCenter;
	
	/*
	 * Default Constructor
	 */
	public FinderPattern()
	{
		points = new Point[4];
	}
	
	/*
	 * Constructor: Sets points to the passed in point array
	 */
	public FinderPattern(Point [] p)
	{
		setPoints(p);
	}	
	
	/*
	 * Sets all the Points
	 */
	public void setPoints(Point [] p)
	{
		points = p;
	}
	
	/*
	 * Sets a specific Point
	 */
	public void setPoint(int loc, Point p)
	{
		points[loc] = p;
	}
	
	/*
	 * Gets all the Points
	 */
	public Point[] getPoints()
	{
		return points;
	}
	
	/*
	 * Gets a Specific Point
	 */
	public Point getPoint(int loc)
	{
		return points[loc];
	}
	
	public boolean getIsCenter()
	{
		return isCenter;
	}
	
	public void setIsCenter(boolean center)
	{
		isCenter = center;
	}
}
